package com.greenhouse.business.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.greenhouse.common.annotation.Excel;
import com.greenhouse.common.core.domain.BaseEntity;

/**
 * 大棚管理对象 biz_group
 * 
 * @author greenhouse
 * @date 2021-04-12
 */
public class BizGroup extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 分组ID */
	private Long groupId;

	/** 分组类型 device-设备分组 */
	private String groupType;

	/** $column.columnComment */
	@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
	private String groupCode;

	/** 分组名称 */
	@Excel(name = "分组名称")
	private String groupName;

	/** 分组描述 */
	@Excel(name = "分组描述")
	private String description;

	/** 逻辑删除 */
	private String delFlag;

	/** 乐观锁 */
	private Long revision;

	/** 创建人 */
	private Long createdBy;

	/** 创建时间 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date createdTime;

	/** 更新人 */
	private Long updatedBy;

	/** 更新时间 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date updatedTime;

	/** $column.columnComment */
	private Long tenantId;

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	public Long getGroupId() {
		return groupId;
	}

	public void setGroupType(String groupType) {
		this.groupType = groupType;
	}

	public String getGroupType() {
		return groupType;
	}

	public void setGroupCode(String groupCode) {
		this.groupCode = groupCode;
	}

	public String getGroupCode() {
		return groupCode;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setRevision(Long revision) {
		this.revision = revision;
	}

	public Long getRevision() {
		return revision;
	}

	public void setCreatedBy(Long createdBy) {
		this.createdBy = createdBy;
	}

	public Long getCreatedBy() {
		return createdBy;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setUpdatedBy(Long updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Long getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedTime(Date updatedTime) {
		this.updatedTime = updatedTime;
	}

	public Date getUpdatedTime() {
		return updatedTime;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public Long getTenantId() {
		return tenantId;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("groupId", getGroupId())
				.append("groupType", getGroupType()).append("groupCode", getGroupCode())
				.append("groupName", getGroupName()).append("description", getDescription())
				.append("delFlag", getDelFlag()).append("revision", getRevision()).append("createdBy", getCreatedBy())
				.append("createdTime", getCreatedTime()).append("updatedBy", getUpdatedBy())
				.append("updatedTime", getUpdatedTime()).append("tenantId", getTenantId()).toString();
	}
}
